import request from '@/utils/request'

export const getAddressListByPage = data => {
  return request({
    url: 'freightTemplate/getTemplateListByPage',
    method: 'post',
    params: data
  })
}
export const addTemplate = data => {
  return request({
    url: 'freightTemplate/addTemplate',
    method: 'post',
    params: data
  })
}
export const deleteTemplate = data => {
  return request({
    url: 'freightTemplate/deleteTemplate',
    method: 'post',
    params: data
  })
}
export const updateTemplate = data => {
  return request({
    url: 'freightTemplate/updateTemplate',
    method: 'post',
    params: data
  })
}

export const getTemplateList = data => {
  return request({
    url: 'freightTemplate/getTemplateList',
    method: 'post',
    params: data
  })
}